package com.zhong.subject.domain.convert;

import com.zhong.subject.domain.bo.SubjectAnswerBO;
import com.zhong.subject.infra.basic.entity.SubjectRadio;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper //此注解为mapstruct包下的
public interface SubjectRadioConverter {
    SubjectRadioConverter INSTANCE = Mappers.getMapper(SubjectRadioConverter.class);

    SubjectRadio convertBoToRadio(SubjectAnswerBO subjectAnswerBO);
    List<SubjectAnswerBO> convertRadioListToAnswerBO(List<SubjectRadio> subjectRadioList);

}
